package com.hbk.controller;

import com.hbk.base.common.CommonResult;
import com.hbk.param.ConfigItemParam;
import com.hbk.service.ISysConfigItemService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/configItem")
public class SysConfigItemController {

    @Resource
    private ISysConfigItemService sysConfigItemService;

    @RequestMapping("/add")
    public CommonResult add(ConfigItemParam.AddParam param){
        return sysConfigItemService.add(param);
    }

    @RequestMapping("/modify")
    public CommonResult modify(ConfigItemParam.ModifyParam param){
        return sysConfigItemService.modify(param);
    }

    @RequestMapping("/delete")
    public CommonResult delete(ConfigItemParam.DeleteParam param){
        return sysConfigItemService.delete(param);
    }

    @RequestMapping("/listAll")
    public CommonResult listAll(){
        return sysConfigItemService.listAll();
    }
}
